﻿<UserControl x:Class="MyFloridaHouse.libSvOpenDistricts.Dialogs.DistrictPlanPrintPdfDlgView"
             xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             mc:Ignorable="d"
             Visibility="{Binding isDlgActive, Converter={StaticResource ConvertBoolToVisibility}}"
             Width="450"
             Height="325">

    <UserControl.Resources>
        <!-- 
            NOTE: All dictionaries are picked up in the App.xaml, including styles here allows us to see the effects in the Visual Studio Designer
            NOTE: The converter staticResources will show up here as "Could not be resolved", but they will be picked up from App.xaml at runtime
        -->
        <ResourceDictionary Source="/libSvCommonUtilities;component/Resources/Styles.xaml" />
    </UserControl.Resources>
    <!---->
    <Border Margin="0"  CornerRadius="20" BorderBrush="#FF549D9D"  BorderThickness="2"  
            Background="{StaticResource DialogBackgroundBrush}"
            >

        <StackPanel >
            <Grid Margin="5" ShowGridLines="False" Height="215">
                <Grid.RowDefinitions>
                    <RowDefinition Height="auto" />
                    <RowDefinition Height="auto" />
                    <RowDefinition Height="auto" />
                    <RowDefinition Height="auto" />
                    <RowDefinition Height="auto" />
                    <RowDefinition Height="auto" />
                    <RowDefinition Height="auto" />
                    <RowDefinition Height="auto" />
                    <RowDefinition Height="auto" />
                    <RowDefinition Height="auto" />
                    <RowDefinition Height="auto" />
                    <RowDefinition Height="auto" />
                    <RowDefinition Height="*" />
                    
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="35"></ColumnDefinition>
                    <ColumnDefinition Width="auto"></ColumnDefinition>
                    <ColumnDefinition Width="auto"></ColumnDefinition>
                    <ColumnDefinition Width="50"></ColumnDefinition>
                    <ColumnDefinition Width="auto"></ColumnDefinition>
                    <ColumnDefinition Width="auto"></ColumnDefinition>
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>

                
                
                <StackPanel  Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Center" Grid.Column="0" Grid.ColumnSpan="7" >
                    <sdk:Label Content="Print Map to PDF File" Style="{StaticResource lblMessageStyle}"/>
                </StackPanel>
                
                <StackPanel  Grid.Row="2" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Center" Grid.ColumnSpan="2">
                    <sdk:Label Content="Print Title" Style="{StaticResource lblMessageStyle}"/>
                </StackPanel>                
                
                <StackPanel  Grid.Row="2" Grid.Column="3" Grid.ColumnSpan="4" Orientation="Horizontal">
                    <TextBox Height="23"  Text="{Binding PDFPrintDistricttPlanTitle, Mode=TwoWay}" Margin="5" Width="250" Background="Azure"  />
                </StackPanel>                
                
                <StackPanel Grid.Row="4" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Grid.ColumnSpan="2">
                    <sdk:Label Content="  Map Area:" Style="{StaticResource lblMessageStyle}"/>
                </StackPanel>
                
                <!--map area selection-->
    <StackPanel Grid.Row="5" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" ToolTipService.ToolTip="Map of entire state of Florida." Margin="5">
        <RadioButton GroupName="PrintMapAreaTypes" Content="Florida" IsChecked="{Binding selectedDistrictPlanPDFPrintMapArea, Mode=TwoWay, Converter={StaticResource ConvertEnumToBool}, ConverterParameter=STATE}"/>
    </StackPanel>


    <StackPanel Grid.Row="6" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" ToolTipService.ToolTip="Map of individual district, select district from drop-down box to right." Margin="5">
        <RadioButton  GroupName="PrintMapAreaTypes" Content ="District" IsChecked="{Binding selectedDistrictPlanPDFPrintMapArea, Mode=TwoWay, Converter={StaticResource ConvertEnumToBool}, ConverterParameter=DISTRICT}" />
    </StackPanel>
    <TextBox Grid.Row="6"   Grid.Column="2"   x:Name="selectedDistrict" Text="{Binding selectedDistrict, Mode=TwoWay}" Tag="{Binding}" Margin="3" Width="40"/>


    <!--<StackPanel Grid.Row="7" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" ToolTipService.ToolTip="Map of individual county, select county from drop-down box to right." Margin="5">
        <RadioButton GroupName="PrintMapAreaTypes"  Content="County" IsChecked="{Binding selectedDistrictPlanPDFPrintMapArea, Mode=TwoWay, Converter={StaticResource ConvertEnumToBool}, ConverterParameter=COUNTY}" />
    </StackPanel>

    <StackPanel Grid.Row="7"   Grid.Column="2" Orientation="Horizontal" >
        <ComboBox  Height="20"  x:Name="cmbCounty" ItemsSource="{Binding districtList}" SelectedIndex="{Binding districtSelectedIndex, Mode=TwoWay}" Tag="{Binding}"  HorizontalAlignment="Center"  Margin="3" >
            <ComboBox.ItemTemplate>
                <DataTemplate>
                    <sdk:Label Content="{Binding}" />
                </DataTemplate>
            </ComboBox.ItemTemplate>
        </ComboBox>
    </StackPanel>-->

    <StackPanel Grid.Row="8" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" ToolTipService.ToolTip="Map of regional area of Florida, select region from drop-down box to right." Margin="5">
        <RadioButton GroupName="PrintMapAreaTypes" Content="Region" IsChecked="{Binding selectedDistrictPlanPDFPrintMapArea, Mode=TwoWay, Converter={StaticResource ConvertEnumToBool}, ConverterParameter=REGIONAL}" />
        <TextBlock />
    </StackPanel>

    <StackPanel Grid.Row="8"   Grid.Column="2" Orientation="Horizontal" >
        <ComboBox  Height="20"  x:Name="cmbRegion" ItemsSource="{Binding houseMapRegions.regionList}" SelectedIndex="{Binding PDFregionListSelectedIndex, Mode=TwoWay}" Tag="{Binding}"  HorizontalAlignment="Center"  Margin="3" >
            <ComboBox.ItemTemplate>
                <DataTemplate>
                    <sdk:Label Content="{Binding name}" />
                </DataTemplate>
            </ComboBox.ItemTemplate>
        </ComboBox>
    </StackPanel>

    <StackPanel Grid.Row="9" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" ToolTipService.ToolTip="Map of current view displayed in MyDistrictBuilder." Grid.ColumnSpan="2" Margin="5">
        <RadioButton GroupName="PrintMapAreaTypes"  Content="Current View" IsChecked="{Binding selectedDistrictPlanPDFPrintMapArea, Mode=TwoWay, Converter={StaticResource ConvertEnumToBool}, ConverterParameter=CURRENTVIEW}" />
    </StackPanel>

    <!--paper size selection-->
    <StackPanel Grid.Row="4" Grid.Column="5" Orientation="Horizontal" HorizontalAlignment="Left" Grid.ColumnSpan="2">
        <sdk:Label Content="  Paper Size:" Style="{StaticResource lblMessageStyle}"/>
    </StackPanel>

    <StackPanel Grid.Row="5" Grid.Column="5" Orientation="Horizontal" HorizontalAlignment="Left" ToolTipService.ToolTip="Map of entire state of Florida." Margin="5">
        <RadioButton GroupName="PrintPaperSize"  Content="8½ x 11"  IsChecked="{Binding selectedPlanPDFPrintPaperSize, Mode=TwoWay, Converter={StaticResource ConvertEnumToBool}, ConverterParameter=_8x11}" />
    </StackPanel>

    <StackPanel Grid.Row="6" Grid.Column="5" Orientation="Horizontal" HorizontalAlignment="Left" ToolTipService.ToolTip="Map of individual district, select district from drop-down box to right." Margin="5">
        <RadioButton GroupName="PrintPaperSize" Content="32 x 32"  IsChecked="{Binding selectedPlanPDFPrintPaperSize, Mode=TwoWay, Converter={StaticResource ConvertEnumToBool}, ConverterParameter=_32x32}" />
    </StackPanel>

    </Grid>

    <sdk:Label Content="IMPORTANT:"  Style="{StaticResource lblMessageStyle}"/>
    <sdk:Label Content="If you have not saved your plan, click cancel and save it first" HorizontalAlignment="Center"/>

    <StackPanel  Orientation="Horizontal" HorizontalAlignment="Right" Margin="15">
        <Button x:Name="CancelButton" Content="Cancel" Command="{Binding CmdCancel}" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,5,0,0"  />
        <Button x:Name="OKButton" Content="OK" Command="{Binding CmdOK}" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,5,0,0"  />
    </StackPanel>
    </StackPanel>
    </Border>
</UserControl>

